package com.meituan.stock.api.http.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author ShenWenhao
 * @Created by ShenWenhao
 * @Date 2022/5/9 21:18
 */
@Data
@ApiModel("出库操作")
public class OutStockHttpRequest {

    @NotNull
    @ApiModelProperty("库存id")
    private Long id;

    @NotNull
    @Min(0)
    @ApiModelProperty("要减少的库存数量")
    private Integer account;

    @NotNull
    @Min(0)
    @ApiModelProperty("要减少的金额")
    private BigDecimal money;

}
